package com.zte.purchase.model;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class CPurchaseAndDetails {

  private String purchaseId;
  @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
  private Date purchaseTime;
  private String totalMoney;
  private String creatId;
  private String creatName;

  private String checkStatus;
  private String checkId;
  private String checkName;
  @DateTimeFormat(pattern = "yyyy/MM/dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
  private Date checkTime;
  private String checkOpinion;

  private String warehuoseId;
  private String cName;

  @DateTimeFormat(pattern = "yyyy/MM/dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
  private Date rkDate;
  private String rkName;
  private String cgState;
  private List<CDetails> purchaseDatails;
}
